package response

import "github.com/gin-gonic/gin"

func ReturnJson(c *gin.Context, httpCode int,dataCode int, msg string, data interface{}) {
	// 返回 json数据
	c.JSON(httpCode, gin.H{
		"code": dataCode,
		"msg":  msg,
		"data": data,
	})
}

type Response struct {
	Code int
	Message string
	Data interface{}
}